package com.jingyanzi.member.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jingyanzi.channel.domain.ChannelDO;
import com.jingyanzi.channel.domain.ChannelTypeDO;
import com.jingyanzi.channel.domain.ChannelWindowDO;

@FeignClient("channel-service")
@RestController
@RequestMapping("/api")
public interface ChannelClientAPI {
	
	@RequestMapping("/channel/{id}")
	public ChannelDO getChannel(@PathVariable(value = "id") Integer id);
	
	@RequestMapping("/channelType/{id}")
	public ChannelTypeDO getChannelType(@PathVariable(value = "id") Integer id);
	
	@RequestMapping("/channelWindow/{id}")
	public ChannelWindowDO getChannelWindow(@PathVariable(value = "id") Integer id);
	
}